package day7;

public class D7_1 {
    public static void main(String[] args) {
        Phone phone=new Phone();
        phone.brand="小米";
        phone.color ="黑色";
        phone.price=3998;
        phone.call();
        phone.sendMessage();
    }
}
 class Phone{
    String brand;
    int price;
    String color;
    public void call(){System.out.println("正在使用价格为"+ price +"的"+ brand+"手机打电话...");}
    public void sendMessage(){System.out.println("正在使用价格为"+ price +"的"+ brand+"手机打电话...");}
}